package com.e3.basdoc.region.model;

import com.e3.template.model.TGFTreeModel;

/**
 * Description: <br>
 * 
 * @author: <a href="mailto:senton1101@126.com">TianXiangdong</a> 2010-8-6
 */
public class RegionModel extends TGFTreeModel implements RegionFields {

	private static final long serialVersionUID = -9089756375817175015L;

	public String getName() {
		return get(RegionFields.NAME);
	}

	public void setName(String name) {
		set(RegionFields.NAME, name);
	}

	public String getCode() {
		return get(RegionFields.CODE);
	}

	public void setCode(String code) {
		set(RegionFields.CODE, code);
	}

	public String getEnglishName() {
		return get(RegionFields.ENGLISH_NAME);
	}

	public void setEnglishName(String englishName) {
		set(RegionFields.ENGLISH_NAME, englishName);
	}

	public String getZipcode() {
		return get(RegionFields.ZIPCODE);
	}

	public void setZipcode(String zipcode) {
		set(RegionFields.ZIPCODE, zipcode);
	}

	public String toString() {
		return getName();
	}

	public String[] getModelFields() {
		return RegionFields.fieldNames;
	}

	@Override
	public String getParentFiledName() {
		return RegionFields.PARENT_REGION;
	}

}
